package com.imooc.Controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.*;

@RestController
public class HelloController {

	@Value("${size}")
	private String size;

	@Value("${age}")
	private int age;

	@RequestMapping(value = {"/hello/{id}"},method = RequestMethod.GET)
	public String say(@PathVariable("id") String id){
		return id;
	}
//	@RequestMapping(value = {"/hi"},method = RequestMethod.GET)
	@GetMapping(value = "/hi")
	public String hi(@RequestParam(value = "id", required = false,defaultValue = "aaa") String uuid){
		return uuid;
	}
}
